#pragma once

#include <QList>
#include "ui_renderselect.h"

namespace PBVP{
	class RenderPlugin;
	/// 
	class RenderSelectDialog : public QDialog {
		Q_OBJECT
	public:
		RenderSelectDialog(QWidget *parent);

		/// 
		void setRenderList(const QList<RenderPlugin *> & list);
		/// 
		int selectedId() const {
			return m_SelectedId;
		}
	public slots:
		virtual void accept();

	private:
		Ui_RenderSelect ui;
		int m_SelectedId;
	};
}